package com.wenxixuanwu.fruitstore.mapper;

import com.wenxixuanwu.fruitstore.entity.FruitOrigin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FruitOriginMapper {

    @Select("select * from fruitorigin")
    @Result(column = "o_id",property = "oId")
    @Result(column = "o_name",property = "oName")
    List<FruitOrigin> selectByOrigin();
}
